//
//  managementViewController.m
//  OfferJob
//
//  Created by 河南动力无限科技有限公司 on 17/7/13.
//  Copyright © 2017年 郑州动力无限科技. All rights reserved.
//

#import "managementViewController.h"
#import "CellView.h"
#import "GerenViewController.h"
#import "EnterpriseViewController.h"
@interface managementViewController ()

@end

@implementation managementViewController

- (void)viewDidLoad {
    self.title=@"管理中心";
    [super viewDidLoad];
  
    float setY=10*kAppScale;
    NSArray *MArr=@[@"个人管理",@"企业信息"];

    for (int i=0; i<[MArr count]; i++) {
        UIButton *cell=[[UIButton alloc]initWithFrame:CGRectMake(10*kAppScale, setY+10*kAppScale, self.view.width-20*kAppScale, 44*kAppScale)];
        cell.font=[UIFont systemFontOfSize:13*kAppScale];
        cell.backgroundColor=blackLineColore;
        [cell setTitle:MArr[i] forState:UIControlStateNormal];
        cell.tag=10+i;
        [cell setContentHorizontalAlignment:UIControlContentHorizontalAlignmentLeft];
        [cell setTitleColor:blackTextColor forState:UIControlStateNormal];
        [cell addTarget:self action:@selector(btnClic:) forControlEvents:UIControlEventTouchUpInside];
    
       UIImageView*RightImg=[[UIImageView alloc]initWithFrame:CGRectMake  (325*kAppScale,10*kAppScale, 16*kAppScale, 16*kAppScale)];
        RightImg.image=[UIImage imageNamed:@"icon_jtt"];
        RightImg.contentMode=UIViewContentModeScaleAspectFit;
        [cell addSubview:RightImg];
     
        [self.view addSubview:cell];
        setY=cell.bottom;
    
    }
    
    
    
    
}
- (void)btnClic:(UIButton*)btn{
    if (btn.tag==10) {
        GerenViewController* GerenV=[[GerenViewController  alloc]init];
        [self .navigationController pushViewController:GerenV animated:YES];
    }else {
    
        EnterpriseViewController* GerenV=[[EnterpriseViewController  alloc]init];
        [self .navigationController pushViewController:GerenV animated:YES];
    
    }
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
